package com.nit.jap.base;

import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import java.util.List;

/**
 * @author :fjw
 * @description:TODO
 * @date :2020/10/18 13:30
 */
public class BaseServiceImpl<T,ID> implements BaseService<T,ID> {

	@PersistenceContext(name = "entityManagerFactory")
	private EntityManager em;
	@Override
	@Transactional
	public Boolean deleteLogic(List<Long> ids) {
		for (Long id : ids) {
			System.out.println(id);
			System.out.println(em);
		}
		return true;
	}
}
